#include "triangle.h"

Triangle::Triangle( Vertex * _v1, Vertex * _v2, Vertex * _v3 )
{
	vertices[0] = _v1; 
	vertices[1] = _v2;
	vertices[2] = _v3;
}

Triangle::Triangle( Vertex * _v1, Vertex * _v2, Vertex * _v3, TriangleType type )
{
	vertices[0] = _v1; 
	vertices[1] = _v2;
	vertices[2] = _v3;
}

/* sets the vertices of a triangle
 * @params Vertices of a triagle
 */
void Triangle::setVertices(  Vertex * _v1, 
							 Vertex * _v2, 
							 Vertex * _v3 )
{
	vertices[0] = _v1; 
	vertices[1] = _v2;
	vertices[2] = _v3;
}

